Set GOPATH to consolidated XDG location - #21
Merged
Merged
Conversation
Go was installed via mise but nothing configured GOPATH, so a fresh setup would default to ~/go instead of the relocated ~/.local/share/go. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
brew_install_cask retried failed cask installs after `brew update`, but that only refreshes cask definitions, not a bad cached download from the same run. Vendor CDNs for self-updating installers (e.g. Telegram) occasionally serve a binary that no longer matches the cask's pinned checksum, so the retry kept failing on the same stale artifact. Force a clean re-fetch before retrying. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Three GUI/session-dependent commands aborted setup.sh under `set -e`
on the headless macOS runner:
- open -a Rectangle: launching a GUI app exits non-zero without a
desktop session. Skip the launch under SETUP_NONINTERACTIVE (keep
the launchOnLogin default, which is worth smoke-testing).
- killall Dock: exits non-zero ("No matching processes") if Dock
isn't running. Make it best-effort — harmless even on a real Mac.
- activateSettings -u: needs a GUI session to reload; make it
best-effort for the same reason.
Also pre-trust aws/tap (pre-tapped on GHA runners) so brew stops
printing the "not trusted" warning on every install/update.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setup.shnever configuredGOPATH, so a fresh setup would default to~/goGOPATH=$HOME/.local/share/goand puts$GOPATH/binonPATH, using the sameappend_line_if_missingpattern already used for miseTest plan
setup.shon a fresh machine (or re-runappend_line_if_missinglines manually) and confirm.zshrcgets the two new export linesgo env GOPATHresolves to~/.local/share/gogo install'd binaries are found onPATH